<?php

/**
 * Model class for the Help and Support Form
 *
 * @author Poh Nean
 */
class SupportForm extends CFormModel
{

    public $message;
    public $type;

    public function rules()
    {
        return array(
            array('message', 'required'),
            array('type', 'required'),
        );
    }

    public static function getTypeOptions()
    {
        $options = array();

        $options['General Enquiry']             = 'General Enquiry';
        $options['Technical Help and Issue']    = 'Technical Help and Issue';
        $options['Billing and Account Issue']   = 'Billing and Account Issue';

        return $options;
    }

    public function attributeLabels()
    {
        return array(
            'type' => Yii::t('app', 'Enquiry Type'),
            'message' => Yii::t('app', 'Message'),
        );
    }

}

?>
